package ru.urfc.portal.exceptions;

import java.text.MessageFormat;

/**
 * Base exception for app
 */
public class BaseException extends RuntimeException {

    public BaseException(String message) {
        super(message);
    }

    public BaseException(String messageTemplate, Object ... arguments) {
        super(MessageFormat.format(messageTemplate, arguments));
    }

	public BaseException() {
		super();
	}

	public BaseException(Throwable cause, String message) {
		super(message, cause);
	}

    public BaseException(Throwable cause, String messageTemplate, Object ... arguments) {
        this(cause, MessageFormat.format(messageTemplate, arguments));
    }

}
